<script setup>
import { ref,toRef,toRefs,reactive } from 'vue';
let person=reactive({
    id:1,
    name:"张飞"
})

let refName = toRef(person,"name")
console.log(person.id);
console.log(refName.value);

let refPerson = toRefs(person);
console.log(refPerson.id);
console.log(refPerson.name.value);





</script>

<template>
  
</template>

<style scoped>

</style>
